package com.bw.broker.client;

import com.bw.po.TbHouseBroker;
import com.bw.result.ResultVo;
import com.bw.vo.BrokerHouseNumVo;
import com.bw.vo.IdVo;
import com.bw.vo.TbHouseBrokerVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Set;

@FeignClient(value = "search-house-broker-manager")
public interface BrokerFeignService {

    /** @Author 曹承坤
     * @Description //TODO 查看经纪人
     * @Date 09:02 23/11/11
     * @Param
     * @param idVo
     * @return
     * @return com.bw.result.ResultVo
     **/
    @PostMapping("/broker/getById")
    public TbHouseBrokerVo getById(@RequestBody IdVo idVo);
    /** @Author 曹承坤
     * @Description //TODO 查看经纪人
     * @Date 09:02 23/11/11
     * @Param
     * @param brokerName
     * @return
     * @return com.bw.result.ResultVo
     **/
    @PostMapping("/broker/getByName")
    public ResultVo getByName(@RequestParam("brokerName") String brokerName);
    /** @Author 曹承坤
     * @Description //TODO 查看经纪人
     * @Date 09:02 23/11/11
     * @Param
     * @param CountyId
     * @return
     * @return com.bw.result.ResultVo
     **/
    @PostMapping("/broker/getByCountyId")
    public Set getByCountyId(@RequestParam("CountyId")Integer CountyId);
    @PostMapping("/broker/subtractBrokerHouse")
    public int subtractBrokerHouse(@RequestBody BrokerHouseNumVo brokerHouseNumVo);
    @PostMapping("/broker/appendBrokerHouse")
    public int appendBrokerHouse(@RequestBody BrokerHouseNumVo brokerHouseNumVo);
}
